home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.uwo.ca!usenet
- From: Sharon Wang <swang1@julian.uwo.ca>
- Newsgroups: comp.lang.c++
- Subject: Variable ARG list (of type double)?
- Date: 18 Apr 1996 01:16:18 GMT
- Organization: UWO, London, Canada
- Message-ID: <4l4552$al2@falcon.ccs.uwo.ca>
- NNTP-Posting-Host: ts1-65.slip.uwo.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Authenticated: swang1@ts1-65.slip.uwo.ca
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- I'd like to make a vector with given elements, e.g.
-
- vector u(1,2,3), u(1,2,3,4,5);
-
- so I was trying to use va_start() and va_arg() in <stdarg.h>.
- However, the manpage for stdarg.h and several C, C++ bibles give
- only the examples in which, the argument list starts with
- char *string, e.g. printf(const char *fmt, ...). Anybody know
- how to get (double arg, ...) work? (basically, how to terminate
- the search for the last arg in the list)
-
- Sharon
- <swang1@julian.uwo.ca>
-
-
-